home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2005 November / WNnov2005.iso / Windows / Indispensables / Movie Collection / MovieCollection5403.exe / {app} / web / Default / film.xsl next >
Extensible Markup Language  |  2005-08-01  |  13KB  |  237 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:import href="header.xsl"/>
  4. <xsl:output method="html" media-type="text/html; charset=ISO-8859-1"/>
  5.  
  6. <xsl:template match="/">
  7.    <html>
  8.       <head>
  9.          <title><xsl:value-of select="datapacket/@title"/></title>
  10.          <link rel="stylesheet" type="text/css" href="mc.css" />
  11.       </head>
  12.       <body>
  13.          <table cellpadding="0" cellspacing="0" width="100%" border="0">
  14.             <!-- EntΩte -->
  15.             <tr><td width="100%">
  16.                <xsl:call-template name="template_header" />
  17.             </td></tr>
  18.  
  19.             <tr>
  20.                <td width="100%">
  21.                   <table cellpadding="0" cellspacing="0" width="100%" border="0">
  22.                      <tr>
  23.                         <td width="100%" class="gt0deg">
  24.                            <xsl:if test="not(//datapacket/@php=1)"><a href="disconnect" class="lktoolbar">DΘconnecter</a> | </xsl:if><a href="index" class="lktoolbar">Nouvelle recherche</a> | <a href="mailto: babidyxp@free.fr" class="lktoolbar">Powered by MovieCollection ⌐ Babidyxp</a>
  25.                         </td>
  26.                         <td width="100%" class="gt0deg">
  27.                            <xsl:value-of select="datapacket/@servername"/>
  28.                         </td>
  29.                      </tr>
  30.                   </table>
  31.                </td>
  32.             </tr>
  33.  
  34.             <!-- Fin EntΩte -->
  35.  
  36.             <tr>
  37.                <td width="100%" class="parAction">
  38.                   <table cellpadding="0" cellspacing="0">
  39.                      <tr>
  40.                         <td class="parAction">
  41.                            <img src="images/trans_pixel.gif" height="25" width="1" />
  42.                         </td>
  43.                         <td class="parAction" valign="center">
  44.                            <img>
  45.                               <xsl:attribute name="src">images/stars<xsl:value-of select="//column[@field='note']/@value"/>.gif</xsl:attribute>
  46.                            </img>
  47.                         </td>
  48.                         <td class="parAction">
  49.                             <xsl:value-of select="//column[@field='nom']/@value"/>
  50.                            <xsl:if test="not(//column[@field='originaltitle']/@value='')">
  51.                               (<xsl:value-of select="//column[@field='originaltitle']/@value"/>)
  52.                            </xsl:if>
  53.                         </td>
  54.                      </tr>
  55.                   </table>
  56.                </td>
  57.             </tr>
  58.  
  59.             <tr><td width="100%">
  60.                <p style="margin: 10px;" />
  61.  
  62.                <div style="margin-top: 0px; margin-bottom: 0px; margin-right: 20px; margin-left: 20px;" >
  63.                   <table cellpadding="0" cellspacing="1" border="0">
  64.                      <tr>
  65.                         <!-- Image -->
  66.                         <td bgcolor="white" valign="top" width="140" class="gt2">
  67.                            <img>
  68.                               <xsl:attribute name="src">getimg?idx=<xsl:value-of select="//column[@field='idx']/@value"/></xsl:attribute>
  69.                            </img>
  70.  
  71.                            <p class="fichetech"><img src="images/trans_pixel.gif" height="15"/></p>
  72.                            <p class="fichetech">Vu ?
  73.                               <xsl:choose>
  74.                                  <xsl:when test="//column[@field='vu']/@value=1"><img src="images/chk.gif" /></xsl:when>
  75.                                  <xsl:otherwise><img src="images/unchk.gif" /></xsl:otherwise>
  76.                               </xsl:choose>
  77.                            </p>
  78.  
  79.  
  80.                            <p class="fichetech">Vu le: <xsl:value-of select="//column[@field='datevu']/@value"/></p>
  81.                            <p class="fichetech">Date ajout: <xsl:value-of select="//column[@field='dateajout']/@value"/></p>
  82.  
  83.                            <p class="fichetech">A acheter ?
  84.                               <xsl:choose>
  85.                                  <xsl:when test="//column[@field='aacheter_bool']/@value=1"><img src="images/chk.gif" /></xsl:when>
  86.                                  <xsl:otherwise><img src="images/unchk.gif" /></xsl:otherwise>
  87.                               </xsl:choose>
  88.                            </p>
  89.  
  90.                            <p class="fichetech"><img src="images/trans_pixel.gif" height="5"/></p>
  91.                            <p class="fichetech"><xsl:value-of select="//column[@field='divers']/@value"/></p>
  92.  
  93.                            <xsl:if test="not(//datapacket/@php=1)">
  94.                               <table cellpadding="0" cellspacing="1" border="0" width="100%" bgcolor="#9F9F9F">
  95.                                  <tr><td class="gtHdeg"><b>RΘservation</b></td></tr>
  96.  
  97.                                  <tr><td class="gt2">
  98.                                     <p class="fichetech">
  99.                                        <xsl:if test="not(//column[@field='idloc']/@value='')">
  100.                                           <b><font color="red">PrΘtΘ</font></b>
  101.                                        </xsl:if>
  102.                                        <xsl:if test="//column[@field='idloc']/@value=''">
  103.                                           <b><font color="green">Disponible</font></b>
  104.                                        </xsl:if>
  105.                                     </p>
  106.                                  </td></tr>
  107.  
  108.                               </table>
  109.  
  110.                               <form name="formReserverFilm"  method="post" action="reserver" >
  111.                                  <input type="hidden" name="__idx">
  112.                                     <xsl:attribute name="value"><xsl:value-of select="//column[@field='idx']/@value"/></xsl:attribute>
  113.                                  </input>
  114.                                  <input type="submit" name="submitReserver" value="Reserver" class="mcbutton" />
  115.                               </form>
  116.                            </xsl:if>
  117.  
  118.                         </td>
  119.                         <!-- Acteurs.... -->
  120.                         <td bgcolor="white" valign="top">
  121.                            <table cellpadding="0" cellspacing="1" border="0">
  122.                               <tr><td class="gt2">RΘfΘrence: <b><xsl:value-of select="//column[@field='ref']/@value"/></b></td></tr>
  123.                               <tr><td class="gt2">RΘalisateur: <b><xsl:value-of select="//column[@field='realisateur']/@value"/></b></td></tr>
  124.                               <tr><td class="gt2">Producteur: <b><xsl:value-of select="//column[@field='producteur']/@value"/></b></td></tr>
  125.                               <tr><td class="gt2">Editeur: <b><xsl:value-of select="//column[@field='editeur']/@value"/></b></td></tr>
  126.  
  127.                               <tr><td class="gt2">Acteurs: <b><xsl:value-of select="//column[@field='acteurs']/@value"/></b></td></tr>
  128.  
  129.                               <tr><td class="gt2"><img src="images/trans_pixel.gif" height="5"/></td></tr>
  130.                               <tr><td class="gt2"><xsl:value-of select="//column[@field='obs']/@value"/></td></tr>
  131.  
  132.                               <tr><td class="gt2"><img src="images/trans_pixel.gif" height="5"/></td></tr>
  133.                               <tr><td class="gt2"><xsl:value-of select="//column[@field='infos']/@value"/></td></tr>
  134.  
  135.                               <tr><td class="gt2"><img src="images/trans_pixel.gif" height="5"/></td></tr>
  136.                               <xsl:if test="not(//column[@field='url']/@value='')">
  137.                                  <tr><td class="gt2">
  138.                                     <a target="_blank">
  139.                                        <xsl:attribute name="href"><xsl:value-of select="//column[@field='url']/@value"/></xsl:attribute>
  140.                                        <xsl:attribute name="title"><xsl:value-of select="//column[@field='url']/@value"/></xsl:attribute>
  141.                                        <xsl:value-of select="//column[@field='url']/@short"/>
  142.                                     </a>
  143.                                  </td></tr>
  144.                               </xsl:if>
  145.  
  146.                               <tr><td class="gt2"><img src="images/trans_pixel.gif" height="5"/></td></tr>
  147.                               <xsl:if test="not(count(//extimg)='0')">
  148.                                  <tr><td class="gt2"><b>Fichiers Externes (Images)</b></td></tr>
  149.                                  <xsl:for-each select="//extimg">
  150.                                     <tr><td class="gt2">
  151.                                        <a>
  152.                                           <xsl:attribute name="href">getextimg?idx=<xsl:value-of select="@idx"/></xsl:attribute>
  153.                                           <xsl:value-of select="@filename"/>
  154.                                        </a>
  155.                                     </td></tr>
  156.                                  </xsl:for-each>
  157.                               </xsl:if>
  158.  
  159.  
  160.                            </table>
  161.  
  162.                         </td>
  163.                         <!-- Fiche Technique -->
  164.                         <td bgcolor="white" valign="top" width="200">
  165.                            <table cellpadding="0" cellspacing="1" border="0" width="100%" bgcolor="#9F9F9F">
  166.                               <tr><td class="gtHdeg"><b>Fiche Technique</b></td></tr>
  167.  
  168.                               <tr><td class="gt2">
  169.                                  <p class="fichetech">Public visΘ: <xsl:value-of select="//column[@field='public']/@value"/></p>
  170.                                  <p class="fichetech">CatΘgorie: <xsl:value-of select="//column[@field='categorie']/@value"/></p>
  171.                                  <p class="fichetech">DurΘe: <xsl:value-of select="//column[@field='duree']/@value"/> min.</p>
  172.                                  <p class="fichetech">AnnΘe: <xsl:value-of select="//column[@field='annee']/@value"/></p>
  173.                               </td></tr>
  174.  
  175.                               <tr><td class="gt2">
  176.                                  <p class="fichetech">Pays: <xsl:value-of select="//column[@field='pays']/@value"/></p>
  177.  
  178.                                  <p class="fichetech">Langues: <xsl:value-of select="//column[@field='langues']/@value"/></p>
  179.                                  <p class="fichetech">Sous-titres: <xsl:value-of select="//column[@field='soustitres']/@value"/></p>
  180.                                  <p class="fichetech">Source: <xsl:value-of select="//column[@field='source']/@value"/></p>
  181.                               </td></tr>
  182.  
  183.                               <tr><td class="gt2">
  184.                                  <p class="fichetech">RΘsolution: <xsl:value-of select="//column[@field='resolution']/@value"/></p>
  185.                                  <p class="fichetech">Aspect: <xsl:value-of select="//column[@field='aspectratio']/@value"/></p>
  186.                                  <p class="fichetech">Format VidΘo: <xsl:value-of select="//column[@field='videoformat']/@value"/></p>
  187.                                  <p class="fichetech">Bitrate: <xsl:value-of select="//column[@field='videobitrate']/@value"/></p>
  188.                                  <p class="fichetech">Format audio: <xsl:value-of select="//column[@field='audioformat']/@value"/></p>
  189.                                  <p class="fichetech">Bitrate: <xsl:value-of select="//column[@field='audiobitrate']/@value"/></p>
  190.                                  <p class="fichetech">FrΘquence: <xsl:value-of select="//column[@field='framerate']/@value"/></p>
  191.                                  <p class="fichetech">Taille fichiers: <xsl:value-of select="//column[@field='filessize']/@value"/></p>
  192.                                  <p class="fichetech">Support: <xsl:value-of select="//column[@field='support']/@value"/></p>
  193.                                  <p class="fichetech">Nbre de supports: <xsl:value-of select="//column[@field='nbsupports']/@value"/></p>
  194.                               </td></tr>
  195.  
  196.                            </table>
  197.                         </td>
  198.                      </tr>
  199.                   </table>
  200.                </div>
  201.  
  202.                <!--
  203.                <div style="margin-top: 0px; margin-bottom: 0px; margin-right: 20px; margin-left: 20px;" >
  204.                   <table cellpadding="0" cellspacing="1" border="0" bgcolor="#9F9F9F">
  205.                      <xsl:apply-templates />
  206.                   </table>
  207.                </div>
  208.                -->
  209.  
  210.             </td></tr>
  211.          </table>
  212.       </body>
  213.    </html>
  214. </xsl:template>
  215.  
  216. <!--
  217. <xsl:template match="//column">
  218.    <xsl:if test="not(@field='idx')">
  219.       <tr>
  220.          <td class="gt2" nowrap="1" valign="top"><xsl:value-of select="@caption" /></td>
  221.          <td class="gt2" valign="top"><xsl:value-of select="@value" /></td>
  222.          <xsl:if test="@field='ref'">
  223.             <td bgcolor="white" valign="top">
  224.                <xsl:attribute name="rowspan"><xsl:value-of select="count(//column)" /></xsl:attribute>
  225.                <img>
  226.                   <xsl:attribute name="src">getimg?idx=<xsl:value-of select="//column[@field='idx']/@value"/></xsl:attribute>
  227.                </img>
  228.             </td>
  229.          </xsl:if>
  230.       </tr>
  231.    </xsl:if>
  232. </xsl:template>
  233. -->
  234.  
  235. </xsl:stylesheet>
  236.  
  237.